package  com.pcbly.web.business.user;
/**
* @author carl.song
* Copyright (c) 2010 Lightsoft, International.
* All rights reserved.
*
*/

import com.pcbly.web.bean.user.UserSchoolBean;
import com.pcbly.web.business.BaseService;
import com.pcbly.web.components.hibernate.support.Page;

public interface UserSchoolService extends BaseService<UserSchoolBean> {

	UserSchoolBean getUserSchoolBeanById(String id) throws Exception;
	
	void removeUserSchoolBeanById(String id) throws Exception;
	
	void removeUserSchoolBeanByIds(String ids) throws Exception;
	
	UserSchoolBean saveUserSchoolBean(UserSchoolBean user) throws Exception;
	
	UserSchoolBean updateUserSchoolBean(UserSchoolBean user) throws Exception;
	
	Page<UserSchoolBean>  findUserSchoolBeanByCond(UserSchoolBean bean,
			Page<UserSchoolBean> page, String orderByName, boolean asc)
			throws Exception;
	void saveUserSchoolBeanExt(String sql) throws Exception;

	String findUserSchoolBeanExtCreate(String tableName) throws Exception;

	String findUserSchoolBeanExtEdit(String tableName, String id)
			throws Exception;

	String findUserSchoolBeanExtView(String tableName, String id)
			throws Exception;

	boolean getHasUserSchoolBeanExtData(String tableName, String id)
			throws Exception;
}